package com.ushine.design.design.c_behavioral_pattern.a_chain_of_responsibility.b_example;

/**
 * 抽象处理类 ： 审批者
 *
 * @author yls
 */
public abstract class Approver {
    protected Approver successor;//定义后继对象
    protected String name;

    public Approver() {
    }

    public Approver(String name) {
        this.name = name;
    }

    public void setSuccessor(Approver successor) {
        this.successor = successor;
    }

    //抽象请求处理方法
    public abstract void processRequest(PurchaseRequest request);
}
